package com.jinhua.batch.model;

import io.swagger.annotations.ApiModelProperty;

import java.util.Objects;

/**
 * Copyright
 *
 * @Author WuHuang
 * @Date 2023/3/31
 */
public class QueryTaskStatusRequest {
    @ApiModelProperty(
            required = true,
            value = "queryKey为空"
    )
    private String queryKey;

    public QueryTaskStatusRequest() {
    }

    public String getQueryKey() {
        return this.queryKey;
    }

    public void setQueryKey(final String queryKey) {
        this.queryKey = queryKey;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof QueryTaskStatusRequest;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QueryTaskStatusRequest that = (QueryTaskStatusRequest) o;
        return Objects.equals(queryKey, that.queryKey);
    }

    @Override
    public int hashCode() {
        return Objects.hash(queryKey);
    }

    public String toString() {
        return "QueryTaskStatusRequest(queryKey=" + this.getQueryKey() + ")";
    }
}
